package cn.qidd.keep.member.model;

import cn.qidd.keep.domain.core.dict.PayChannel;
import cn.qidd.keep.domain.core.dict.PayType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddMemberParams {

    @ApiModelProperty("会员卡姓名")
    @NotBlank(message = "会员卡姓名不能为空")
    private String name;
    @ApiModelProperty("会员卡电话")
    @NotBlank(message = "会员卡电话不能为空")
    private String mobile;
    @ApiModelProperty("会员所属产品")
    @NotBlank(message = "会员产品不能为空")
    private String productId;
    @ApiModelProperty("会员支付价格")
    @NotNull(message = "金额不能为空")
    @Min(0)
    private Double price;
    @ApiModelProperty("支付渠道")
    @NotNull(message = "支付渠道不能为空")
    private PayChannel payChannel;
    @NotNull(message = "支付方式不能为空")
    @ApiModelProperty("支付方式")
    private PayType payType;
    @ApiModelProperty("会员总共可使用次数")
    @NotNull(message = "总次数不能为0")
    private Integer count;
}
